package com.fuze.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fuze.domain.model.User;

/**
 * @author sepc_
 * @date 4/1/2021 14:55
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {

    /**
     * 判断用户名是否存在
     *
     * @param username 用户名
     * @return 是否存在
     */
    Boolean existByUsername(@Param("username") String username);

    /**
     * 判断购电公司名+户号是否存在
     *
     * @param marketMembersName 购电公司名+户号
     * @return 是否已经注册
     */
    Boolean existByMarketMembersName(@Param("marketMembersName") String marketMembersName);


}